from rest_framework import serializers

class StudentsSerializer(serializers.Serializer):
    """定义一个序列化类"""
    id = serializers.IntegerField()
    username = serializers.CharField()
    age = serializers.CharField()
    gender = serializers.CharField()
    birthday = serializers.CharField()
    phone = serializers.CharField()
    address = serializers.CharField()
    graduated = serializers.CharField()
    remarks = serializers.CharField()